$(document).ready(function() {
    
$('#.$flat->id.').click(function() {

    alert("ПАРАПАМ");
//we get the id of the selected product

});

});